package com.eastedu.repository.question.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eastedu.repository.question.po.QuestionConverterLogPO;
import com.eastedu.repository.question.po.QuestionItemPO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * The interface Question item mapper.
 * @author ZHISHUAI.ZHANG
 * @since 2019 /2/22
 */
@Mapper
@DS("ym")
public interface QuestionConverterLogMapper extends BaseMapper<QuestionConverterLogPO> {
    @Delete("DELETE FROM question_converter_log WHERE question_id = #{questionId} AND question_item_id = #{questionItemId}")
    int deleteByQuestionIdAndItemId(@Param("questionId") Long questionId, @Param("questionItemId") Long questionItemId);
}
